// http://code.google.com/p/objx/wiki/collect

OAction("collect", {

	collective: true,
	action: ONew,
	
	all: function(obj, index, selector) {
	
		if (ODebug) {
			if (!selector) {
				OError(".collect requires a selector.  If you passed a function(){} selector, remember the behaviour modifier as the second argument.  Try .collect(function(){}, ONew)");
			}
		}
	
		return OGet(obj, selector);
	}
});

OProvides("objx.collect");